package com.wit.po;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

/**
 * Adgenda entity. @author MyEclipse Persistence Tools
 */

public class Adgenda implements java.io.Serializable {

	// Fields

	private Integer agendaId;
	private String employeeId;
	private String agendaTitle;
	private String agendaAddress;
	private Timestamp agendaStart;
	private Timestamp agendaDue;

	// Constructors

	/** default constructor */
	public Adgenda() {
	}

	/** full constructor */
	public Adgenda(String employeeId, String agendaTitle, String agendaAddress,
			Timestamp agendaStart, Timestamp agendaDue) {
		this.employeeId = employeeId;
		this.agendaTitle = agendaTitle;
		this.agendaAddress = agendaAddress;
		this.agendaStart = agendaStart;
		this.agendaDue = agendaDue;
	}

	// Property accessors
	
	public String getAgendaDate()
	{
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
		return format.format(agendaStart);
	}

	public Integer getAgendaId() {
		return this.agendaId;
	}

	public void setAgendaId(Integer agendaId) {
		this.agendaId = agendaId;
	}

	public String getEmployeeId() {
		return this.employeeId;
	}

	public void setEmployeeId(String employeeId) {
		this.employeeId = employeeId;
	}

	public String getAgendaTitle() {
		return this.agendaTitle;
	}

	public void setAgendaTitle(String agendaTitle) {
		this.agendaTitle = agendaTitle;
	}

	public String getAgendaAddress() {
		return this.agendaAddress;
	}

	public void setAgendaAddress(String agendaAddress) {
		this.agendaAddress = agendaAddress;
	}

	public Timestamp getAgendaStart() {
		return this.agendaStart;
	}

	public void setAgendaStart(Timestamp agendaStart) {
		this.agendaStart = agendaStart;
	}

	public Timestamp getAgendaDue() {
		return this.agendaDue;
	}

	public void setAgendaDue(Timestamp agendaDue) {
		this.agendaDue = agendaDue;
	}

}